package com.ten.stat.service.impl;

import com.ten.common.core.vo.Result;
import com.ten.stat.dao.TbMemberDao;
import com.ten.stat.service.TbMemberService;
import com.ten.stat.vo.TbMemberVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ：王薪伟
 * @date ：Created in 2022/12/9 11:11
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class TbMemberServiceImpl implements TbMemberService {

    @Autowired
    private TbMemberDao memberDao;

    @Override
    public Result<List<TbMemberVo>> findMemberType() {
        List<TbMemberVo> list = memberDao.selectMemberType();
        return new Result<List<TbMemberVo>>(2000,"查询成功",list);
    }
}
